package com.itcat.api.mysql;

import com.itcat.mysql.pojo.CmsPrefrenceAreaProductRelation;

import java.util.List;

/**
 * @author Jerry Broker
 * @project_name rainbow-mall
 * @create 2022-04-03 23:58
 */
public interface CmsPrefrenceAreaProductRelationApi {
    // 保存优选专区和商品的关系
    void saveList(List<CmsPrefrenceAreaProductRelation> prefrenceAreaProductRelationList);

    // 通过商品id查找CmsPrefrenceAreaProductRelation
    List<CmsPrefrenceAreaProductRelation> findByProductId(Long productId);

    // 更新优选专区和商品的关系
    void updateList(List<CmsPrefrenceAreaProductRelation> prefrenceAreaProductRelationList);

    // 删除响应商品id的数据
    void deleteByProductId(Long productId);
}
